<?php use_stylesheet('job.css') ?>
<?php use_helper('Text') ?>
 
<div id="job">
  <h1><?php echo $product->getNom() ?></h1>
  <h2><?php echo "R&eacute;f: ".$product->getReference() ?></h2>
  <h3>
    <?php echo "Prix : ".$product->getPrixUnitaire()."&euro;" ?>
    <small> - <?php 
    	if($product->getNbStock() != 0){
    		 echo $product->getNbStock()." en stock";
    	}else{
    		echo "<blink><font color='red'>Rupture de stock</font></blink>";
    	}
    ?></small>
  </h3>
 
  <?php if ($product->getUrlImage()): ?>
    <div class="logo">
        <img src="/uploads/product/<?php echo $product->getUrlImage() ?>"
          alt="<?php echo $product->getNom() ?> logo" height=200/>
    </div>
  <?php endif; ?>
 
  <div class="description">
    <?php echo simple_format_text($product->getDescription()) ?>
  </div>
 
  <h4>
   	<?php echo "Existe en coloris : ".$product->getCouleur() ?>
  </h4>
  <h4>
  	<?php //echo link_to("Ajouter au panier", url_for('product_show_user', $product), $product)?>
  </h4>
 
  
 
  <div class="meta">
    <small>posted on <?php echo $product->getDateTimeObject('created_at')->format('m/d/Y') ?></small>
  </div>
 
</div>